/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.shelvesreport.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.shelvesreport.entity.ShelvesReport;
import com.thinkgem.jeesite.modules.shelvesreport.dao.ShelvesReportDao;

/**
 * 上架报告Service
 * @author zxl
 * @version 2017-08-04
 */
@Service
@Transactional(readOnly = true)
public class ShelvesReportService extends CrudService<ShelvesReportDao, ShelvesReport> {

	public ShelvesReport get(String id) {
		return super.get(id);
	}
	
	public List<ShelvesReport> findList(ShelvesReport shelvesReport) {
		return super.findList(shelvesReport);
	}
	
	public Page<ShelvesReport> findPage(Page<ShelvesReport> page, ShelvesReport shelvesReport) {
		shelvesReport.getSqlMap().put("dsf", dataScopeFilter(shelvesReport.getCurrentUser(), "o2", null));
		shelvesReport.setPage(page);
		return super.findPage(page, shelvesReport);
	}
	
	@Transactional(readOnly = false)
	public void save(ShelvesReport shelvesReport) {
		super.save(shelvesReport);
	}
	
	@Transactional(readOnly = false)
	public void delete(ShelvesReport shelvesReport) {
		super.delete(shelvesReport);
	}
	
}